import ChildCom1 from "./ChildCom1";

import MyContext from "./context";
import { useState } from "react";

const { Provider } = MyContext;

function Context() {
  const [count, setCount] = useState(0);
  return (
    <Provider value={{ count, setCount }}>
      <div style={{
        border: '1px solid',
        width: "250px",
      }}>
        <ChildCom1 />
      </div>
    </Provider>
  );
}

export default Context;
